import os
import sys

sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/..')
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

module_name = os.path.dirname(os.path.abspath(__file__)).rsplit("/", 1)[-1]

os.environ['DJANGO_SETTINGS_MODULE'] = '{0}.settings'.format(module_name)

import django.core.handlers.wsgi
application = django.core.handlers.wsgi.WSGIHandler()
